﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="cms.Default" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
            <div id="MainMenu">
                <asp:Menu ID="MainMenu" runat="server" StaticDisplayLevels="2" MaximumDynamicDisplayLevels="1" Orientation="Horizontal" DataSourceID="MainMenuSource" CssClass="Menu" />
                <asp:SiteMapDataSource ID="MainMenuSource" Runat="server" ShowStartingNode="true" />
            </div>
            <h1><%= Info.Title %></h1>
            <div id="LeftCol">
                <asp:Menu ID="LeftMenu" runat="server" StaticDisplayLevels="1" MaximumDynamicDisplayLevels="1" Orientation="Vertical" DataSourceID="LeftMenuSource" CssClass="Menu" />
                <asp:SiteMapDataSource ID="LeftMenuSource" Runat="server" ShowStartingNode="false" StartFromCurrentNode="true" />
            </div>
            <div id="RightCol">
            <asp:UpdatePanel ID="pnlMain" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                        <CMS:ContentArea ID="Main" runat="server">
                            <EditTemplate>
                                <ajax:Editor ID="Editor" runat="server" Content='<%# DataBinder.Eval(Container, "Content") %>' OnContentChanged="Editor_ContentChanged" DocumentCssPath="~/styles/editor.css" DesignPanelCssPath="~/styles/editor.css" CssClass="Editor" Height="490" />
                                <div style="margin-top:30px;">
                                    <asp:LinkButton ID="ui_btnDone" runat="server" style="float:right; padding:5px;" onclick="ui_btnDone_Click">Save</asp:LinkButton>
                                    <asp:LinkButton ID="ui_btnCancel" runat="server" style="float:right; padding:5px;" onclick="ui_btnCancel_Click">Cancel</asp:LinkButton>
                                </div>
                            </EditTemplate>
                            <ViewTemplate>
                                <asp:LinkButton ID="ui_btnEditMain" runat="server" style="float:right;" onclick="ui_btnEditMain_Click">Edit</asp:LinkButton>
                                <CMS:SecurityContextExtender ID="ui_EditContext" runat="server" TargetControlID="ui_btnEditMain" ActionOnFail="Hide" />
                                <CMS:ContentBlock ID="Content" runat="server" Content='<%# DataBinder.Eval(Container, "Content") %>' />
                            </ViewTemplate>
                        </CMS:ContentArea>
                        <br />
                        <div style="clear:both; width:100%;">&nbsp;</div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        
</asp:Content>
